const db = wx.cloud.database()
const _ = db.command
export default class LevelService {
  constructor() {}
  // 查询表中所有等级分类信息
  getLevelist(success_callback) {
    db.collection('level').get().then(res => {
      if (res.data.length > 0) {
        success_callback && success_callback(res.data)
      }
    })
  }
}